package org.jeecg.common.system.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * ID字段
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class IdBaseEntity  implements Serializable {

    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private String id;

    @TableField(exist=false)
//    @Excel(name = "序号", orderNum = "-1")
    @ApiModelProperty(value = "序号", hidden = true)
    @JsonIgnore
    private Long rowNumber;

}
